<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ffx
  Date: 2021/11/5
  Time: 17:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%--引入jquery--%>
<script src="webjars/jquery/3.6.0/dist/jquery.min.js"></script>
<%--引入bootstrap的css库--%>
<link rel="stylesheet" href="webjars/bootstrap/4.6.0/css/bootstrap.min.css">
<%--引入bootstrap的js库--%>
<link rel="stylesheet" href="webjars/bootstrap/4.6.0/js/bootstrap.min.js">
<html>
<head>
    <title>学生列表</title>
</head>
<body>
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3>学生列表</h3>
        </div>

        <!-- Table -->
        <table class="table">
            <tr>
                <td>学生id</td>
                <td>学生姓名</td>
                <td>年龄</td>
                <td>所在班级</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${students}" var="stu">
                <tr>
                    <td>${stu.sid}</td>
                    <td>${stu.sname}</td>
                    <td>${stu.sex}</td>
                    <td>${stu.cid}</td>
                    <td>
                        <a href="" class="btn btn-success btn-sm">修改</a>
                        <a href="" class="btn btn-danger btn-sm">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
    </div>
</body>
</html>
